package com.common.repository.evaluate;

import com.common.entity.evaluate.CheckEvaluateEntity;
import com.common.entity.target.TargetItemEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author johnny
 * @create 2021-05-13 10:24 下午
 **/
public interface CheckEvaluateRepository extends JpaRepository<CheckEvaluateEntity, Long> {


    CheckEvaluateEntity findByPersonalIdAndYearAndMonth(Long personalId , Integer year , Integer month);

    void deleteByIdIn(List<Long> oldList);

    List<CheckEvaluateEntity> findByPersonalIdInAndYearAndMonth(List<Long> personalIdList, Integer year, Integer month);
}